import {createRouter,createWebHistory} from 'vue-router'
import Index from '@/view/Index/index.vue'
import Login from '@/view/Login/Login.vue'
const routes = [
    {
        path:'/',
        name:'Index',
        component:Index,
        redirect:'/pictureManager',
        children:[
            
            {
                path:'/pictureManager',
                name:'PictureManager',
                component:()=>import('@/view/main/Picture/PictureManager.vue')
            },
            {
                path:'/typeManager',
                name:'TypeManager',
                component:()=>import('@/view/main/Types/TypeManager.vue')
            },
            {
                path:'/clean',
                name:'Clean',
                component:()=>import('@/view/main/Clean/Clean.vue')
            },
        ]
    },
    {
        path:'/login',
        name:'login',
        component:Login
    },
]

const router = createRouter({
    routes,
    history:new createWebHistory()
})

export default router